import {get} from '../get'
import {request} from '../request'

export const getWellBoreStructure = (pageNum, pageSize, searchModel) => {
    return get.get(`/well_bore_structure/${pageNum}/${pageSize}`,{
        params: searchModel
    })
}

export const getDictChild = (parentName) => {
    return get.get('/well_bore_structure/dict/child', {
      params: {
        name: parentName
      }
    })
  }

export const deleteWellBoreStructure = (WellBoreStructureId) => {
    return request.delete(`/well_bore_structure/${WellBoreStructureId}`)
}

export const updateWellBoreStructure = (WellBoreStructureId, updateWellBoreStructure) => {
    return request.put(`/well_bore_structure/${WellBoreStructureId}`, updateWellBoreStructure)
}